#ifndef TEACHERANDSTUDENT_H
#define TEACHERANDSTUDENT_H

#include <iostream>
using namespace std;
class Student;
class Teacher;
enum{
    Male,Female
};
class Student
{
private:
    int num;
    string name;
    int sex;
    double gpa;

public:
    Student(int num,
            string name,
            int sex,
            double gpa);
    ~Student();
        int getNum();
    string getName();
    int getSex();
};
class Teacher
{
private:
    int num;
    string name;
    int sex;
    int wage;
public:
    Teacher(int inum,
            string iname,
            int isex,
            int iwage);
    Teacher(Student& a);
    ~Teacher();
    int getNum();
    string getName();
    int getSex();
};
int Teacher::getNum(){return num ;}
string Teacher::getName(){return name;}
int Teacher::getSex(){return sex;}
Teacher::Teacher(Student&a)
{
    name=a.getName();
    num=a.getNum();
    sex=a.getSex();
}
Teacher::Teacher(int inum,
                 string iname,
                 int isex,
                 int iwage)
{
    num = inum;
    name = iname;
    sex = isex;
    wage = iwage;
}

Teacher::~Teacher()
{
}

int Student::getNum(){return num ;}
string Student::getName(){return name;}
int Student::getSex(){return sex;}
Student::Student(int inum,
                 string iname,
                 int isex,
                 double igpa)
{
    num = inum;
    name = iname;
    sex = isex;
    gpa = igpa;
}
Student::~Student(){};
void test2()
{
    Student a(1850700,"ddv",Male,4.5);
    Teacher b(a);
    cout <<b.getName()<<b.getNum()<<b.getSex()<<endl;
}
#endif